package org.darkforest.common.services.impl;

import org.darkforest.common.services.HelpTypeService;
import org.darkforest.dao.mapper.HelpTypeMapper;
import org.darkforest.model.HelpType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2015/8/15.
 */
@Service
public class HelpTypeServiceImpl implements HelpTypeService {

    @Autowired
    private HelpTypeMapper helpTypeMapper;


    @Override
    public List<HelpType> listHelpTypeAndHelpContent() {

        List<HelpType> helpTypeList =  helpTypeMapper.listHelpTypeAndHelpContent();
        return helpTypeList;
    }

    /**
     * 根据添加查询帮助文档
     *
     * @param helpType
     * @return
     */
    @Override
    public List<HelpType> findProxyHelpClassByCondition(HelpType helpType) {
        return helpTypeMapper.findProxyHelpClassByCondition(helpType);
    }
}
